package com.shiminghui;

import java.util.ArrayList;

public class ListDemo {

    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<>();

        Integer a = 10,b=213,c=412;
        list.add(a);
        list.add(b);
        list.add(c);
        System.out.println(list);

        list.remove(a);

        System.out.println(list);

        list.remove(0);

        System.out.println(list);

        System.out.println(list.size());
        System.out.println(list.set(0,21));
        System.out.println(list.get(0));




    }
}
